﻿using System;
namespace PageAdmin.Utils.ORM
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    /// <summary>
    /// 更新配置特性
    /// </summary>
    public class ModifyAttribute:Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="allowAdd"></param>
        /// <param name="allowEdit"></param>
        public ModifyAttribute(bool allowAdd=true,bool allowEdit=true)
        {
            this.AllowAdd = allowAdd;
            this.AllowEdit = allowEdit;
        }

        /// <summary>
        /// 是否允许修改
        /// </summary>
        public bool AllowAdd { get; set; }

        /// <summary>
        /// 是否允许添加
        /// </summary>
        public bool AllowEdit { get; set; }

    }

}
